package com.liyuhan.onlinetaxibackground.Repository;

import com.liyuhan.onlinetaxibackground.POJO.Passenger;
import com.liyuhan.onlinetaxibackground.POJO.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface PassengerRepository extends JpaRepository<Passenger, Integer> {
    Optional<Passenger> findPassengerByUser(User user);
}
